package com.hkpickup.apple;
import com.hkpickup.web.HtmlFetcher;
import java.net.URLEncoder;

public class SmsAlert {
	private final String weblink = "http://hkpickuplib.appspot.com/SimpleSms?title=";
	private int accumulatedSent=0;
	
	public int getAccumulatedSent() {
		return accumulatedSent;
	}

	public void setAccumulatedSent(int accumulatedSent) {
		this.accumulatedSent = accumulatedSent;
	}
	public void sendMsg(String content){
		//URLEncoder encoder = new URLEncoder();
		String encodedContent = URLEncoder.encode(content); 
		HtmlFetcher f = new HtmlFetcher(weblink+encodedContent);
		int respond = f.fetch();		
		accumulatedSent++;
	}
}
